package com.rmt.www.daoImpl;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.rmt.www.vo.Artifact;
import com.rmt.www.vo.DesignArtifact;
import com.rmt.www.vo.FeatureArtifact;
import com.rmt.www.vo.FeatureArtifactHistory;
import com.rmt.www.vo.FeatureArtifactRequest;

public class FeatureArtifactRequestRowMapper implements RowMapper {

	public Object mapRow(ResultSet rs, int ix) throws SQLException {
		return new FeatureArtifactRequest(
				rs.getInt("id"),
				rs.getInt("pid"),
				rs.getString("title"),
				rs.getInt("authorid"),
				rs.getString("version"),
				rs.getString("priority"),
				rs.getString("source"),
				rs.getString("rational"),
				rs.getTimestamp("createdtime"),
				rs.getInt("updaterid"),
				rs.getTimestamp("updatedtime"),
				rs.getString("status"),
				rs.getString("description"),
				rs.getString("cost"),
				rs.getInt("effort"),
				rs.getString("risk"),
				rs.getInt("updatedtimes"),
				rs.getInt("featureartifactid"),
				rs.getString("requesttype"));
				
	}

}
